import React from 'react'
import Page from './container/Page'
import store from './store/store'
import { Provider } from './util/constqdx-react-redux'
import {Map, is} from 'immutable'

let obj = Map({name: 1, title: 'varqins'})
let obj1 = Map({name: 1, title: 'varqins'})
console.log(is(obj,obj1))
console.log(obj===obj1)
//优点
//减少内存使用
//并发安全
//减低开发度
//便于负载数据，定制shouldComponentUpdate
//函数是编程
//时间旅行


//缺点
//学习成本
//库的大小
//对现有项目入侵严重
//不适合旧项目改造

/* console.log('app','test')
let obj = Map({
  name:'Tom',
  course:'React'
})
let obj1 = obj.set('name','varqins')
console.log(obj1 === obj) */

class App extends React.Component{
  render(){
    return (
      <Provider store={store}>
        <div>
          <header>header</header>
          <Page></Page>
          <footer>footer</footer>
        </div>
      </Provider>
    )
  }
}
export default App
